package com.tjec.project.businessWorkbench.dto;

import com.tjec.framework.aspectj.lang.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tjec.framework.web.domain.BaseEntity;

/**
 * 文件对象 bms_attachment
 * 
 * @author pangyognfeng
 * @date 2020-04-24
 */
public class BmsAttachmentDto extends BaseEntity
{

    /**
	 * 
	 */
	private static final long serialVersionUID = 5845919852618363414L;

	/** id 主键 */
    private String id;

    /**
     * guid
     */
    private String fileId;

    /** 附件类目 附件类目（从数据字典获取，00便签，01项目概要，02收资管理，03项目文档，04资料归档，05成果校审，06个人专家，07典型案例，08业务指南，09任务模板） */
    @Excel(name = "附件类目 附件类目", readConverterExp = "从=数据字典获取，00便签，01项目概要，02收资管理，03项目文档，04资料归档，05成果校审，06个人专家，07典型案例，08业务指南，09任务模板")
    private String category;

    /** 关联类目主表ID 关联类目主表ID */
    @Excel(name = "关联类目主表ID 关联类目主表ID")
    private String bizId;

    /** 字段编码 字段编码 */
    @Excel(name = "字段编码 字段编码")
    private String dataField;
    
    /** 文件来源 */
    @Excel(name = "文件来源")
    private String fileSource;
    
    /** 文件名 用户账号 */
    @Excel(name = "文件名 用户账号")
    private String fileName;

    /** 文件类型 文件类型 */
    @Excel(name = "文件类型 文件类型")
    private String contentType;

    /** 文件长度 文件长度 */
    @Excel(name = "文件长度 文件长度")
    private Long contentLength;

    /** 版本 版本 */
    @Excel(name = "版本 版本")
    private Long version;

    /** 访问地址 邮件 */
    @Excel(name = "访问地址 邮件")
    private String viewUrl;

    /** 存储地址 存储地址 */
    @Excel(name = "存储地址 存储地址")
    private String storagePath;

    /** 状态 状态（0可读可写 1可读 2不可读不可写） */
    @Excel(name = "状态 状态", readConverterExp = "0=可读可写,1=可读,2=不可读不可写")
    private String status;
    
    /** 归档状态（0未归档 1已归档,2归档中） */
    private String archiveStatus;

    /** 是否允许下载 是否允许下载（0允许，1不允许） */
    @Excel(name = "是否允许下载 是否允许下载", readConverterExp = "0=允许，1不允许")
    private String downloadLimit;

    /** 删除标志 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getCategory()
    {
        return category;
    }

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public void setDataField(String dataField)
    {
        this.dataField = dataField;
    }

    public String getDataField() 
    {
        return dataField;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setContentLength(Long contentLength) 
    {
        this.contentLength = contentLength;
    }

    public Long getContentLength() 
    {
        return contentLength;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }
    public void setViewUrl(String viewUrl) 
    {
        this.viewUrl = viewUrl;
    }

    public String getViewUrl() 
    {
        return viewUrl;
    }
    public void setStoragePath(String storagePath) 
    {
        this.storagePath = storagePath;
    }

    public String getStoragePath() 
    {
        return storagePath;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDownloadLimit(String downloadLimit) 
    {
        this.downloadLimit = downloadLimit;
    }

    public String getDownloadLimit() 
    {
        return downloadLimit;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("guid", getFileId())
            .append("category", getCategory())
            .append("bizId", getBizId())
            .append("dataField", getDataField())
            .append("fileName", getFileName())
            .append("contentType", getContentType())
            .append("contentLength", getContentLength())
            .append("version", getVersion())
            .append("viewUrl", getViewUrl())
            .append("storagePath", getStoragePath())
            .append("status", getStatus())
            .append("downloadLimit", getDownloadLimit())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("fileSource", getFileSource())
            .toString();
    }
    
	public String getFileSource() {
		return fileSource;
	}

	public void setFileSource(String fileSource) {
		this.fileSource = fileSource;
	}

	public String getArchiveStatus() {
		return archiveStatus;
	}

	public void setArchiveStatus(String archiveStatus) {
		this.archiveStatus = archiveStatus;
	}
}
